package cn.itcast.order.job.handler;


import cn.itcast.order.service.OrderService;
import com.xxl.job.core.handler.annotation.XxlJob;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定义股票相关数据的定时任务
 * @author laofang
 */
@Component
//@Slf4j
public class StockJob {
    @Autowired
    OrderService orderService;
    /**
     * 定义定时任务，采集国内大盘数据
     */
    @XxlJob("getStockInnerMarketInfos")
    public void getStockInnerMarketInfos(){
        System.out.println("1111111111111111");
        orderService.timingShelves();
    }




    // 自定义的任务
    @XxlJob("hema_job_test")
    public void jobTest(){
        System.out.println("jobTest run.....");
    }

}